import { ProTable } from '@ant-design/pro-components'
import { dasHttp } from '@/utils/request'

function fetchReleaseListByPage(data: any) {
	return dasHttp.post({
		url: '/archive-release-record/page',
		data
	})
}
const flowType = 'DAS_DANG_AN_FA_BU_FLOW'
const userId = 15

const List = () => {
	return (
		<ProTable
			params={{
				pageNo: 1,
				pageSize: 10,
				param: { flowType, userId }
			}}
			request={async (param) => {
				console.log(param)
				const { data } = await fetchReleaseListByPage(param)
				console.log('====: ', data)
				return { success: true, data: [], total: 0 }
			}}
		/>
	)
}

export default List
